package com.liujianlei.forum_system.dao;

import com.liujianlei.forum_system.model.Board;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface BoardMapper {
    int insert(Board row);

    int insertSelective(Board row);

    Board selectByPrimaryKey(Long id);
    Board selectByName(String name);

    int updateByPrimaryKeySelective(Board row);

    int updateByPrimaryKey(Board row);
    List<Board>selectTopByNum(@Param("num") Integer num);
    List<Board>selectAllNormal();
    int updateArticleCountById(@Param("id")Long id);
    Board selectByPrimaryKeyWithNormal(@Param("id") Long id);

}